<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <meta charset='utf-8'>
    <title>CRM大客户(学校)管理</title>
    <jsp:include page="/static/common/easyui_header.jsp"/>
    <script type="text/javascript" src="/static/js/views/school.js"></script>
</head>
<body>
    <table id="school_tab" class="easyui-datagrid">

    </table>
    <div id="school_tab_tool">
            <a class="easyui-linkbutton" plain="true" iconCls="icon-add" data-cmd="addschool">增加</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-edit" data-cmd="editschool">更改</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-reload" data-cmd="reloadList">刷新</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-remove" data-cmd="deleteschool">丢单</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-remove" data-cmd="trackSchool">跟踪</a>
            <a class="easyui-linkbutton" plain="true" iconCls="icon-download" data-cmd="downloadList">导出</a>
            <a id="singing" class="easyui-linkbutton" plain="true" iconCls="icon-remove" data-cmd="signing">签约</a>
            <a id="cooperation" class="easyui-linkbutton" plain="true" iconCls="icon-download" data-cmd="cooperation">合作</a>
        &emsp;
        <span>关键字:</span>
        <input class="easyui-textbox" id="keyword" name="keyword" prompt="学校/地址">
        <span>意向学科</span>
        <td><input name="washClass" id="washClass" class="easyui-combobox" data-options="
                            url:'/systemDictionary/getItem?parentId=13',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-search" data-cmd="queryForList">查询</a>
        <%--<a class="easyui-linkbutton" plain="true" iconCls="icon-add" data-cmd="addWork">添加实训</a>--%>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-add" data-cmd="addSpeech">添加演讲</a>
    </div>
    <div id="school_dialog" style="padding: 10px">
        <form id="school_edit" method="post">
            <table style="width: 750px">
                <input id="school_id" type="hidden" name="id">
                <tr align="right">
                    <td>学校</td>
                    <td><input name="name" class="easyui-textbox"></td>
                    <td>地址</td>
                    <td><input name="address" class="easyui-textbox"></td>
                    <td>重要性</td>
                    <td><input name="improtance.id" class="easyui-combobox" data-options="
                            url:'/systemDictionary/grade',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
                </tr>
                <tr align="right">
                    <td>意向程度</td>
                    <td><input name="wash.id" class="easyui-combobox" data-options="
                            url:'/systemDictionary/grade',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
                    <td>意向学科</td>
                    <td><input name="washClass.id" class="easyui-combobox" data-options="
                            url:'/systemDictionary/getItem?parentId=13',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
                    <td>意向校区</td>
                    <td><input name="schAddress.id" class="easyui-combobox" data-options="
                            url:'/systemDictionary/getItem?parentId=4',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
                </tr>
                <tr align="right">
                    <td>联系人</td>
                    <td><input  id="school_linkman" class="easyui-combobox" data-options="
                            url:'/schoolLinkman/selectAll',
                            valueField:'id',
                            textField:'name',
                            panelHeight:150,
                            "></td>
                    <td>学校电话</td>
                    <td><input name="tel" class="easyui-textbox"></td>
                    <td>意向数量</td>
                    <td><input name="clientTotal" class="easyui-textbox"></td>
                    <%--后台实现--%>
                    <%--<td>营销人员</td>
                    <td><input name="sale" class="easyui-textbox"></td>
                    <td>跟进人员</td>
                    <td><input name="currentSale" class="easyui-textbox"></td>--%>
                </tr>
                <tr align="right">
                    <td>学校类型</td>
                    <td><input name="shc.id" class="easyui-combobox" data-options="
                            url:'/systemDictionary/shc',
                            valueField:'id',
                            textField:'name',
                            panelHeight:'auto',
                            "></td>
                    <td>学员数量</td>
                    <td><input name="regStu" class="easyui-textbox"></td>
                    <td>教师数量</td>
                    <td><input name="teacherNum" class="easyui-textbox"></td>
                </tr>
                <tr align="right">
                    <td>备注</td>
                    <td colspan="6" align="left"><input data-options="
                        multiline:true"  class="easyui-textbox" name="remark" style="height: 50px;width: 657px"/>
                    </td>
                </tr>
                <tr align="right">
                    <td>简介</td>
                    <td colspan="6" align="left"><input data-options="
                        multiline:true" class="easyui-textbox" name="info" style="height: 50px;width: 657px"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="trackSchool_dialog" style="padding: 10px">
        <form id="trackSchool_form" method="post">
            <table>
                <input id="track_id" type="hidden" name="id">
                <tr align="right">
                    <td>下次跟单时间</td>
                    <td><input class="easyui-datetimebox" name="nextTime" style="width:200px"></td>
                </tr>
                <tr align="right">
                    <td>跟单人</td>
                    <td><input name="currentSale.id" class="easyui-combobox" data-options="
                            url:'/employee/queryAll',
                            valueField:'id',
                            textField:'realName',
                            panelHeight:'auto',
                            "></td>
                </tr>
            </table>
        </form>
    </div>
    <div id="speech_dialog" style="padding: 10px">
        <form id="speect_form" method="post">
            <table>
                <input id="speech_school_id" type="hidden" name="id">
                <input id="speech_school_school" type="hidden" name="school.id">
                <tr align="right">
                    <td>演讲时间</td>
                  <td><input class="easyui-datetimebox" name="speechTime"></td>
                </tr>
                <tr align="right">
                    <td>演讲地址</td>
                    <td colspan="4" align="left"><input class="easyui-textbox" name="address"/>
                    </td>
                </tr>
                <tr align="right">
                    <td>演讲老师</td>
                    <td colspan="4" align="left"><input name="speecher.id" class="easyui-combobox" data-options="
                            url:'/employee/queryAll',
                            valueField:'id',
                            textField:'realName',
                            panelHeight:'auto',
                            "></td>
                </tr>
                <tr align="right">
                    <td>演讲效果</td>
                    <td colspan="4" align="left"><input class="easyui-textbox" name="result"/>
                    </td>
                </tr>
                <tr align="right">
                    <td>演讲内容</td>
                    <td colspan="4" align="left"><input data-options="
                        multiline:true" class="easyui-textbox" name="info"/>
                    </td>
                </tr>
                <tr align="right">
                    <td>演讲备注</td>
                    <td colspan="4" align="left"><input data-options="
                        multiline:true" class="easyui-textbox" name="remark"/>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <div id="speech_list_dialog">
        <table id="speech_list" class="easyui-datagrid">
    </div>
    <div id="school_edit_tool">
        <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="save">确定</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
    <div id="trackSchool_dialog_tool">
        <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="track">确定</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
    <div id="speech_dialog_tool">
        <a class="easyui-linkbutton" plain="true" iconCls="icon-ok" data-cmd="speechSave">确定</a>
        <a class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
</body>
</html>
